<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/inc/taglibs.jsp"%>

<script type="text/javascript">

	function uploadifySuccess(file, data, response) {
		var responseJson = $.parseJSON(data);
		if (typeof (responseJson.code) == "undefined" || responseJson.code == "0") {
			alert("上传失败:"+responseJson.msg);
		} else {
			alert(responseJson.msg);
		}
	}

	function uploadifyQueueComplete() {

	}

</script>
<style type="text/css" media="screen">
.my-uploadify-button {
	background:none;
	border: none;
	text-shadow: none;
	border-radius:0;
}

.uploadify:hover .my-uploadify-button {
	background:none;
	border: none;
}

.fileQueue {
	width: 400px;
	height: 150px;
	overflow: auto;
	border: 1px solid #E5E5E5;
	margin-bottom: 10px;
}
</style>
<div class="pageContent">
		<p>
			<label>导入的excel两条数据之间不能存在空行，建议一次最多导入500条数据</label>
		</p>
		<div class="pageFormContent" layoutH="57" align="left">
	
				<input id="testFileInput2" type="file" name="file" 
					uploaderOption="{
						swf:'${path }/js/dwz-ria-1.5.0/uploadify/scripts/uploadify.swf',
						uploader:'${path }/admin/userRechargeableCard/upload.json',
						formData:{},
						queueID:'fileQueue',
						buttonImage:'${path }/js/dwz-ria-1.5.0/uploadify/img/add.jpg',
						buttonClass:'my-uploadify-button',
						fileTypeDesc:'*.xls;*.xlsx;',
						fileTypeExts:'*.xls;*.xlsx;',
						width:102,
						auto:false,
						multi:true,
						onUploadSuccess:uploadifySuccess,
						onQueueComplete:uploadifyQueueComplete
					}"
				/>
				<div id="fileQueue" class="fileQueue"></div>
				<input type="image" src="images/upload.jpg" onclick="$('#testFileInput2').uploadify('upload', '*');"/>
		</div>
		
</div>
